home *** CD-ROM | disk | FTP | other *** search
- ;
- ; Name : Install_RexxCD
- ; Created : 23/06/96
- ; Last change : 24/06/96
- ;
- ; Programmer : Urban Lindeskog
- ; Organization : ProNotion SWDG
- ;
- ;
-
-
- ;
- ;
- ; Ask all the questions
- ;
- ;
- (complete 0)
-
- (set @default-dest
- (askdir
- (prompt "Where do you want the RexxCD program to be installed?\n\nIf you want RexxCD into a separate directory, you have to create it now.")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- (set #htmlpath
- (askdir
- (prompt "Where do you want the RexxCD html documentation to be installed?\nA directory called 'html' will be created there.")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- (set #tocpath
- (askdir
- (prompt "Where do you want the Table Of Contents files to be stored?\A directory called 'discs' will be created there.")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- (set #rexxpath
- (askdir
- (prompt "Where do you want the example ARexx programs to be stored?\A directory called 'rexx' will be created there.")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- (set #devname
- (askstring
- (prompt "Please enter the name of your SCSI device driver")
- (help "Usual device names are scsi.device, z3scsi.device or 2nd_scsi.device\nConsult your SCSI controller documentation if you are unsure.")
- (default "scsi.device")
- )
- )
-
- (set #devunit
- (asknumber
- (prompt "Please enter the unit number of your CD drive")
- (help "Unit numbers often range from 0-7,\n Unit number 7 usually is occupied by the SCSI controller.")
- (default 4)
- )
- )
-
-
- ;
- ; Start with the installation
- ;
- ;
-
- (set #setfile(tackon @default-dest "RexxCD.settings"))
- (set #tocpath(tackon #tocpath "discs"))
- (set #htmlpath(tackon #htmlpath "html"))
- (set #rexxpath(tackon #rexxpath "rexx"))
-
- (copyfiles
- (prompt "Which language catalogs do you want to install?")
- (help "The 'catalog' files enables RexxCD to operate in different languages.\nHere you can choose what languages to install.")
- (source "Catalogs")
- (dest "locale:Catalogs")
- (all)
- (infos)
- (confirm 'average')
- )
-
- (complete 10)
-
- (copyfiles
- (prompt "Copying RexxCD...")
- (help @copyfiles-help)
- (source "RexxCD")
- (dest @default-dest)
- (files)
- (infos)
- )
-
- (complete 20)
-
- (copyfiles
- (prompt "Copying the RexxCD html documentation...")
- (help @copyfiles-help)
- (source "html")
- (dest #htmlpath)
- (infos)
- (all)
- )
-
- (complete 50)
-
- (copyfiles
- (prompt "Copying the ARexx program examples...")
- (help @copyfiles-help)
- (source "rexx")
- (dest #rexxpath)
- (infos)
- (all)
- )
-
- (complete 60)
-
- (copyfiles
- (prompt "Copying the Table Of Contents files...")
- (help @copyfiles-help)
- (source "discs")
- (dest #tocpath)
- (infos)
- (all)
- )
-
- (complete 90)
-
- (textfile
- (dest #setfile)
-
- (append "APPLICATION.SCREEN=Workbench\n")
- (append "SETTINGS.REPEAT=1\n")
- (append "SETTINGS.CREATEICONS=42\n")
- (append "SETTINGS.ALLOWMACROS=0\n")
-
- (append "SETTINGS.TOCPATH=")
- (append #tocpath)
- (append "\n")
-
- (append "BUTTON.1=\n")
- (append "BUTTON.2=\n")
- (append "BUTTON.3=\n")
- (append "BUTTON.4=\n")
- (append "BUTTON.5=\n")
- (append "BUTTON.6=\n")
- (append "BUTTON.7=\n")
-
- (append "DEVICE.NAME=")
- (append #devname)
- (append "\n")
-
- (append "DEVICE.UNIT=")
- (append #devunit)
- (append "\n")
-
- (append "FONT.TEXTFONT.NAME=topaz.font\n")
- (append "FONT.TEXTFONT.SIZE=8\n")
- (append "FONT.DIGITFONT.NAME=topaz.font\n")
- (append "FONT.DIGITFONT.SIZE=8\n")
- (append "FONT.LYRICFONT.NAME=topaz.font\n")
- (append "FONT.LYRICFONT.SIZE=8\n")
- )
-
- (complete 100)
-